Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.social.workspace.content.views--layouts

This contribution is part of XML component org.nuxeo.ecm.social.workspace.content.views inside nuxeo-social-workspace-web-5.8.jar

Extension Point

Extension point layouts of component WebLayoutManager.

Contributed Items

  • <layout name="SocialWorkspaces@cvListingLayout">
          <templates>
            <template mode="any">/layouts/layout_listing_ajax_template.xhtml</template>
            <template mode="edit_columns">/layouts/layout_column_selection_template.xhtml</template>
            <template mode="edit_sort_infos">/layouts/layout_sort_infos_template.xhtml</template>
            <template mode="edit_sort_infos_map">/layouts/layout_sort_infos_template.xhtml</template>
          </templates>
          <properties mode="any">
            <property name="showListingHeader">true</property>
            <property name="showRowEvenOddClass">true</property>
          </properties>
          <properties mode="edit_columns">
            <property name="availableElementsLabel">label.selection.availableColumns</property>
            <property name="selectedElementsLabel">label.selection.selectedColumns</property>
            <property name="selectedElementsHelp"/>
            <property name="selectSize">10</property>
            <property name="displayAlwaysSelectedColumns">false</property>
          </properties>
          <properties mode="edit_sort_infos">
            <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfo}</property>
            <property name="required">false</property>
          </properties>
          <properties mode="edit_sort_infos">
            <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfoMap}</property>
            <property name="required">false</property>
          </properties>
          <columns>
            <column alwaysSelected="true" name="selection">
              <properties mode="any">
                <property name="isListingSelectionBox">true</property>
                <property name="useFirstWidgetLabelAsColumnHeader">false</property>
                <property name="columnStyleClass">iconColumn</property>
              </properties>
              <widget>listing_ajax_selection_box</widget>
            </column>
            <column name="listing_title_link">
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                <property name="columnStyleClass"/>
                <property name="label">Title</property>
                <property name="sortPropertyName">dc:title</property>
              </properties>
              <widget>listing_title_link</widget>
            </column>
            <column name="created">
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                <property name="columnStyleClass"/>
                <property name="label">Creation Date</property>
                <property name="sortPropertyName">dc:created</property>
              </properties>
              <widget>created</widget>
            </column>
            <column name="creator">
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                <property name="columnStyleClass"/>
                <property name="label">Creator</property>
                <property name="sortPropertyName">dc:creator</property>
              </properties>
              <widget>creator</widget>
            </column>
            <column name="description">
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                <property name="columnStyleClass"/>
                <property name="label">Description</property>
                <property name="sortPropertyName">dc:description</property>
              </properties>
              <widget>description</widget>
            </column>
            <column name="isPublic">
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                <property name="columnStyleClass"/>
                <property name="label">IsPublic</property>
                <property name="sortPropertyName">socialw:isPublic</property>
              </properties>
              <widget>isPublic</widget>
            </column>
            <column name="listing_lifecycle">
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                <property name="columnStyleClass"/>
                <property name="label">Lifecycle state</property>
                <property name="sortPropertyName">ecm:currentLifeCycleState</property>
              </properties>
              <widget>listing_lifecycle</widget>
            </column>
          </columns>
          <widget name="listing_title_link" type="listing_title_link">
            <labels>
              <label mode="any">label.content.header.title</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data</field>
              <field>data.ref</field>
              <field>data.dc.description</field>
              <field>data.file.content</field>
              <field>data.file.filename</field>
            </fields>
            <properties mode="any"/>
          </widget>
          <widget name="created" type="datetime">
            <labels>
              <label mode="any">label.content.header.created</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data.dc.created</field>
            </fields>
            <properties mode="any"/>
          </widget>
          <widget name="creator" type="text">
            <labels>
              <label mode="any">label.content.header.author</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data.dc.creator</field>
            </fields>
            <properties mode="any"/>
          </widget>
          <widget name="description" type="text">
            <labels>
              <label mode="any">label.content.header.description</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data.dc.description</field>
            </fields>
            <properties mode="any"/>
          </widget>
          <widget name="isPublic" type="checkbox">
            <labels>
              <label mode="any">label.content.header.public</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data.socialw.isPublic</field>
            </fields>
            <properties mode="any"/>
          </widget>
          <widget name="listing_lifecycle" type="listing_lifecycle">
            <labels>
              <label mode="any">label.content.header.currentLifecycleState</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data.currentLifeCycleState</field>
            </fields>
            <properties mode="any"/>
          </widget>
        </layout>

XML Source

<extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
    <layout name="SocialWorkspaces@cvListingLayout">
      <templates>
        <template mode="any">/layouts/layout_listing_ajax_template.xhtml</template>
        <template mode="edit_columns">/layouts/layout_column_selection_template.xhtml</template>
        <template mode="edit_sort_infos">/layouts/layout_sort_infos_template.xhtml</template>
        <template mode="edit_sort_infos_map">/layouts/layout_sort_infos_template.xhtml</template>
      </templates>
      <properties mode="any">
        <property name="showListingHeader">true</property>
        <property name="showRowEvenOddClass">true</property>
      </properties>
      <properties mode="edit_columns">
        <property name="availableElementsLabel">label.selection.availableColumns</property>
        <property name="selectedElementsLabel">label.selection.selectedColumns</property>
        <property name="selectedElementsHelp"/>
        <property name="selectSize">10</property>
        <property name="displayAlwaysSelectedColumns">false</property>
      </properties>
      <properties mode="edit_sort_infos">
        <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfo}</property>
        <property name="required">false</property>
      </properties>
      <properties mode="edit_sort_infos">
        <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfoMap}</property>
        <property name="required">false</property>
      </properties>
      <columns>
        <column alwaysSelected="true" name="selection">
          <properties mode="any">
            <property name="isListingSelectionBox">true</property>
            <property name="useFirstWidgetLabelAsColumnHeader">false</property>
            <property name="columnStyleClass">iconColumn</property>
          </properties>
          <widget>listing_ajax_selection_box</widget>
        </column>
        <column name="listing_title_link">
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">true</property>
            <property name="columnStyleClass"/>
            <property name="label">Title</property>
            <property name="sortPropertyName">dc:title</property>
          </properties>
          <widget>listing_title_link</widget>
        </column>
        <column name="created">
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">true</property>
            <property name="columnStyleClass"/>
            <property name="label">Creation Date</property>
            <property name="sortPropertyName">dc:created</property>
          </properties>
          <widget>created</widget>
        </column>
        <column name="creator">
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">true</property>
            <property name="columnStyleClass"/>
            <property name="label">Creator</property>
            <property name="sortPropertyName">dc:creator</property>
          </properties>
          <widget>creator</widget>
        </column>
        <column name="description">
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">true</property>
            <property name="columnStyleClass"/>
            <property name="label">Description</property>
            <property name="sortPropertyName">dc:description</property>
          </properties>
          <widget>description</widget>
        </column>
        <column name="isPublic">
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">true</property>
            <property name="columnStyleClass"/>
            <property name="label">IsPublic</property>
            <property name="sortPropertyName">socialw:isPublic</property>
          </properties>
          <widget>isPublic</widget>
        </column>
        <column name="listing_lifecycle">
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">true</property>
            <property name="columnStyleClass"/>
            <property name="label">Lifecycle state</property>
            <property name="sortPropertyName">ecm:currentLifeCycleState</property>
          </properties>
          <widget>listing_lifecycle</widget>
        </column>
      </columns>
      <widget name="listing_title_link" type="listing_title_link">
        <labels>
          <label mode="any">label.content.header.title</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>data</field>
          <field>data.ref</field>
          <field>data.dc.description</field>
          <field>data.file.content</field>
          <field>data.file.filename</field>
        </fields>
        <properties mode="any"/>
      </widget>
      <widget name="created" type="datetime">
        <labels>
          <label mode="any">label.content.header.created</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>data.dc.created</field>
        </fields>
        <properties mode="any"/>
      </widget>
      <widget name="creator" type="text">
        <labels>
          <label mode="any">label.content.header.author</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>data.dc.creator</field>
        </fields>
        <properties mode="any"/>
      </widget>
      <widget name="description" type="text">
        <labels>
          <label mode="any">label.content.header.description</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>data.dc.description</field>
        </fields>
        <properties mode="any"/>
      </widget>
      <widget name="isPublic" type="checkbox">
        <labels>
          <label mode="any">label.content.header.public</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>data.socialw.isPublic</field>
        </fields>
        <properties mode="any"/>
      </widget>
      <widget name="listing_lifecycle" type="listing_lifecycle">
        <labels>
          <label mode="any">label.content.header.currentLifecycleState</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>data.currentLifeCycleState</field>
        </fields>
        <properties mode="any"/>
      </widget>
    </layout>
  </extension>